package com.example.takeaway.serivce;

import com.example.takeaway.entity.Orders;
import com.example.takeaway.utils.PageResult;

import java.util.List;


/**
 * ordersService接口
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
public interface IOrdersService 
{
    /**
     * 查询orders
     * 
     * @param orderid orders主键
     * @return orders
     */
    public Orders selectOrdersByOrderid(Long orderid);

    public Orders getOrdersByOrdersn(String  ordersn);

    /**
     * 查询orders列表
     * 
     * @param orders orders
     * @return orders集合
     */
    public PageResult selectOrdersList(Orders orders,int pageNum, int pageSize);

    /**
     * 新增orders
     * 
     * @param orders orders
     * @return 结果
     */
    public int insertOrders(Orders orders);

    /**
     * 修改orders
     * 
     * @param orders orders
     * @return 结果
     */
    public int updateOrders(Orders orders);

    /**
     * 批量删除orders
     * 
     * @param orderids 需要删除的orders主键集合
     * @return 结果
     */
    public int deleteOrdersByOrderids(Long[] orderids);

    /**
     * 删除orders信息
     * 
     * @param orderid orders主键
     * @return 结果
     */
    public int deleteOrdersByOrderid(Long orderid);
}
